home *** CD-ROM | disk | FTP | other *** search
/ Know Your Baseball - The Greatest Player Resource / Know Your Baseball - Greatest Player.iso / Baseball / Director / SHARED.CST / 00007_Script_control scripts for SSQ movies < prev    next >
Text File  |  1998-09-21  |  9KB  |  348 lines

  1. global gClicked,¼
  2.  gControls,gBt,gPlayerFlag,sndFlag1,gAVI,CrdFlag1,gTx,gStopFlag,gLast,gMode,gNumDetails,gPos
  3.  
  4. --- script for players in SSQ movies  marker 1 
  5.  
  6. on Player  
  7.   puppetSound 0
  8.   set the blend of sprite (gClicked - 11) to 100
  9.   set gLast =gPlayerFlag
  10.   set gPlayerFlag = gClicked
  11.   if the framelabel ="1Intro" then
  12.     set gPlayerFlag = gClicked
  13.     --  gets the right card
  14.     showcard
  15.     -- sound handling
  16.     mSoundPlayBack(gControls),gPlayerFlag,3,1
  17.     updatestage  
  18.     if crdflag1> 0 then
  19.       set crdflag1 = 0
  20.     end if
  21.   else
  22.     set crdflag1 = 0
  23.     mResetcard(gControls) gLast
  24.     set the blend of sprite 8 = 0
  25.     showcard1
  26.     set gStopFlag = 0
  27.     loadvideo gplayerflag
  28.     set gAVI = 2
  29.     updatestage
  30.   end if
  31. end
  32.  
  33.  
  34.  
  35.  
  36. on showcard
  37.   set sndFlag1 = 1
  38.   if gPlayerFlag < 23 then exit
  39.   mCards(gControls), gPlayerFlag
  40.   set x = the result
  41.   --  put the result & "  Card"
  42.   set y = the number of words in x
  43.   if y > 1 then
  44.     set gTX = 1
  45.     set gBt = []
  46.     repeat with a = 1 to y
  47.       setat gBt, a, word a of x
  48.     end repeat
  49.     set the blend of sprite 11 to 100
  50.     mMultiOn(gControls)
  51.   else
  52.     set the blend of sprite 11 to 0
  53.     mMultiOff (gControls)
  54.     set gTX = 1
  55.     set gBt = []
  56.   end if
  57.   set w = word gTx of x
  58.   set the castNum of sprite 10 to (the number of cast w)
  59.   set the blend of sprite 10 to 100
  60.   updatestage
  61. end
  62.  
  63. -- sets bitmapped  infot text for 1video marker called from screendown
  64. on showcard1
  65.   set gBt = []
  66.   set sndFlag1 = 1
  67.   if voidp(gplayerflag) then set gplayerFlag = 23
  68.   if gPlayerFlag < 23 then exit
  69.   VideoDetailControls 
  70.   mCards(gControls), gPlayerFlag
  71.   -- put the result
  72.   set x = the result
  73.   set y = the number of words in x
  74.   set w = word 1 of x
  75.   
  76.   if y > 1 then 
  77.     repeat with a = 1 to y
  78.       setat gBt, a, word a of x
  79.     end repeat
  80.     set the blend of sprite 11 to 100
  81.     mMultiOn(gControls)
  82.   else
  83.     set gpos = 1
  84.     set the blend of sprite 11 to 0
  85.     mMultiOff (gControls)
  86.     set gBt = []
  87.   end if
  88.   set the castNum of sprite 10 to (the number of cast w)
  89.   set the blend of sprite 10 to 100
  90.   updatestage
  91.   
  92. end
  93.  
  94. -- script for video screen that controls the detail texts and detail videos for the video screen videos
  95.  
  96. on VideoDetailControls
  97.   MgetPlayerDetails(gControls) gPlayerFlag
  98.   set gNumDetails = the result
  99.   if gNumDetails >1 then
  100.     set the type of sprite 48 = 1
  101.     set the castnum of sprite 48 = the number of cast "VCard"
  102.     set the locH of sprite 48 = 619
  103.     set the locv of sprite 48 =  37
  104.     set the ink of sprite 48 = 32
  105.     set the blend of sprite 48 = 100
  106.     MsetCommand(gcontrols),48,"CardButton1"
  107.     updatestage
  108.   else
  109.     set the castnum of sprite 48 = 0
  110.     set the type of sprite 48 = 0
  111.     MsetCommand(gcontrols),48,Empty
  112.     updatestage
  113.   end if
  114. end
  115.  
  116. -- sets the txt and audio details for the video screen 
  117.  
  118. on SetOtherDetails
  119.   set sndflag1 = gPos
  120.   set gtX = gPos
  121.   mSetSecondaryCards(gcontrols), gplayerflag,gTx  -- gPlayer Flag is just a placeholder is not used
  122. end
  123.  
  124. on CardButton
  125.   set b = count(gBt)
  126.   set c= (the name of cast (the castNum of sprite 10))
  127.   set Pos = getpos(gBt,c)
  128.   -- video marker branch
  129.   if the framelabel = "1video" then
  130.     if Pos < b  then
  131.       set the castNum of sprite 10 to (the number of cast (getat(gBT,(Pos+1))))
  132.       updatestage
  133.       exit
  134.     else
  135.       set the castNum of sprite 10 to (the number of cast (getat(gBT,1)))
  136.       updatestage
  137.       exit
  138.     end if
  139.   end if
  140.   
  141.   -- branch for first marker in SSQ
  142.   if Pos < b then
  143.     set the castNum of sprite 10 to (the number of cast (getat(gBT,(Pos+1))))
  144.     set sndFlag1 = (Pos+1)
  145.     mSoundPlayBack(gControls),gPlayerFlag,3,sndFlag1
  146.     set CrdFlag1 = (sndFlag1)-1
  147.     updatestage
  148.   else
  149.     set the castNum of sprite 10 to (the number of cast (getat(gBT,1)))
  150.     mSoundPlayBack(gControls),gPlayerFlag,3,1
  151.     set sndFlag1 =1
  152.     set CrdFlag1 = 1
  153.     updatestage
  154.   end if
  155.   
  156.   -- set flag for right list info to be loaded for secondary cards BITtxt in 1video flag
  157.   
  158.   set c= (the name of cast (the castNum of sprite 10))
  159.   set gTx = getpos(gBt,c)
  160. end
  161.  
  162. -- cardbutton1 is for an added function which allows controls of detail media from the video screen
  163.  
  164. on CardButton1
  165.   puppetsound 0
  166.   set the movierate of sprite 3 = 0
  167.   set the blend of sprite 8 = 0
  168.   set b = gNumDetails
  169.   set c= (the name of cast (the castNum of sprite 3))
  170.   
  171.   -- get the video clips in the list at gplagerflag
  172.   
  173.   MgetPossibleVideos(gcontrols) gplayerFlag
  174.   set Vid  = the result
  175.   set gPos = gPos+1
  176.   
  177.   if gPos <= b  then
  178.     set theOne = getat(vid,gPos)
  179.     mDetailvideo(gControls) theOne
  180.   else
  181.     set gPos = 1
  182.     set theOne = getat(vid,1)
  183.     mDetailvideo(gControls) theOne
  184.   end if
  185.   SetOtherDetails
  186.   showdetails
  187.   updatestage
  188. end
  189.  
  190. on ShowDetails
  191.   mCards(gControls), gPlayerFlag
  192.   set x = the result
  193.   set y = the number of words in x
  194.   set w = word 1 of x
  195.   if y > 1 then 
  196.     repeat with a = 1 to y
  197.       setat gBt, a, word a of x
  198.     end repeat
  199.     -- set the blend of sprite 11 to 100
  200.     mMultiOff (gControls)
  201.     mMultiOn(gControls)
  202.   else
  203.     set the blend of sprite 11 to 0
  204.     mMultiOff (gControls)
  205.     set gBt = []
  206.   end if
  207.   set the castNum of sprite 10 to (the number of cast w)
  208.   set the blend of sprite 10 to 100
  209. end
  210.  
  211.  
  212.  
  213.  
  214. -- jumps to movie screen and loads appropriate avi clip 
  215.  
  216. on ScreenDown
  217.   puppetSound 0
  218.   set gPos = gTx
  219.   -- toast the screendown button
  220.   mSetCommand (gControls),33, EMPTY
  221.   set the visible of sprite 33 to false
  222.   set the castnum of sprite 33 =0
  223.   set the type of sprite 33 = 0
  224.   
  225.   -- get rid of the video screen
  226.   set the visible of sprite 32 to false
  227.   set the castnum of sprite 32=0
  228.   set the type of sprite 32= 0
  229.   put the type of sprite 32
  230.   puppetsprite 32, 0
  231.   
  232.   
  233.   -- set up some specifics for the video screen
  234.   set the visible of sprite 11 to false
  235.   set the visible of sprite 31 to true
  236.   set the blend of sprite 3 to 0
  237.   set the visible of sprite 10 to false
  238.   updatestage
  239.   mSetSecondaryCards(gControls) gPlayerFlag, (gTx)
  240.   setSpritesSml
  241.   go marker(1)
  242.   
  243.   setcontrolbar
  244.   
  245.   -- set up practice mode button in 4 movies
  246.   if gMode = 1 then SetModeButton
  247.   updatestage
  248.   
  249.   -- loads a video
  250.   set gStopFlag = 0
  251.   loadvideo gplayerflag
  252.   
  253.   --sets sprite for screenup on
  254.   
  255.   set the type of sprite 31 = 1
  256.   set the castnum of sprite 31 to the number of cast "ScrnUp"
  257.   set the loch of sprite 31 = 330
  258.   set the locv of sprite 31 = 335
  259.   set the ink of sprite 31 = 32
  260.   set the blend of sprite 31 = 0
  261.   
  262.   
  263.   setSpritesSml
  264.   showcard1
  265.   updatestage
  266.   set gAVI =EMPTY
  267.   set the visible of sprite 10 to true
  268.   set the blend of sprite 3  to 100
  269.   
  270.   
  271.   -- change some functions on the fly
  272.   mSetCommand(gControls),31,"ScreenUp"
  273.   mSetCommand (gControls),32, EMPTY
  274.   -- must eventually add screen prompt as well
  275.   
  276.   -- special function for "Proball in base running"
  277.   if the movieName = "Sliding" then mSetCommand(gControls),30, EMPTY
  278.   
  279.   updatestage
  280.   
  281. end
  282.  
  283.  
  284.  
  285. --returns to SSQ main screen and puts appropriate player card in sprite 10 and 11
  286.  
  287. on  screenUp
  288.   puppetSound 0
  289.   -- unset the mode button in four movies
  290.   if gmode = 1 then UnModeButton
  291.   
  292.   if the type of sprite 3 = 0 then
  293.     nothing
  294.   else
  295.     set the movierate of sprite 3 to 0
  296.   end if
  297.   
  298.   -- toast out the video screen detail button
  299.   set the castnum of sprite 48 = 0
  300.   set the type of sprite 48 = 0
  301.   MsetCommand(gcontrols),48, EMPTY
  302.   
  303.   set the blend of sprite 3 to 0
  304.   puppetsprite 3,false
  305.   set the visible of sprite 30 to true
  306.   set the visible of sprite 33 to true
  307.   set the visible of sprite 32 to true
  308.   set the visible of sprite 31 to false
  309.   setSpritesSml
  310.   DealTheCards(gControls)
  311.   
  312.   --  change some functions on the fly
  313.   
  314.   mSetCommand(gControls),31,EMPTY
  315.   mSetCommand(gControls),32,"playAVI"
  316.   mSetCommand (gControls),33, "ScreenDown"
  317.   mSetCommand (gControls),34,EMPTY
  318.   
  319.   set crdflag1 = Empty
  320.   set the type of sprite 31 = 0
  321.   ToastVideoControls
  322.   
  323.   go marker(-1)
  324.   
  325.   
  326.   puppetsprite 32, 1
  327.   setSpritesSml
  328.   showcard
  329.   set the visible of sprite 10 to true
  330.   set the visible of sprite 11 to true
  331.   
  332.   -- set the screendown button
  333.   set the type of sprite 33 = 1
  334.   set the castnum of sprite 33 to the number of cast "ScrnDn"
  335.   set the loch of sprite 33 = 312
  336.   set the locv of sprite 33 = 51
  337.   set the ink of sprite 33 = 32
  338.   set the blend of sprite 33 = 0
  339.   
  340.   updatestage
  341. end
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.